package me.ratel.demo.wechat.entities;

import javax.xml.bind.annotation.adapters.XmlAdapter;

/**
 * @author Administrator
 * @time 2016/8/7 17:14
 */
public class AdaptorCDATA  extends XmlAdapter<String, String> {
    @Override public String unmarshal(String arg0) throws Exception {
        return arg0;
    }

    @Override public String marshal(String arg0) throws Exception {
        return "<![CDATA[" + arg0 + "]]>";
    }
}
